package com.itheima.controller;

import com.itheima.entry.Result;
import com.itheima.service.OrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jshstart
 * @creat 2020-11-22 13:30
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Reference
    private OrderService orderService;
    @GetMapping("/selectSetmealPercent")
    public Result selectSetmealPercent(){
        return new Result(orderService.selectSetmealPercent());
    }
}
